package com.design.strategy.salary;

/**
 * 支付到银行卡
 */
public class Card2 implements PaymentStrategy {
	/**
	 * 帐号信息
	 */
	private String account = "";

	/**
	 * 构造方法，传入帐号信息
	 * 
	 * @param account
	 *            帐号信息
	 */
	public Card2(String account) {
		this.account = account;
	}

	public void pay(PaymentContext ctx) {
		System.out.println("现在给" + ctx.getUserName() + "的" + this.account
				+ "帐号支付了" + ctx.getMoney() + "元");
		// 连接银行，进行转帐，就不去管了
	}
}